import $V from './$V';

export default function mtm(price, length) {
    let MTMValue = $V.init(price.length,0);
    MTMValue = $V.copy_by_index(MTMValue,length,$V.sub($V.subv(price,length,price.length),$V.subv(price,0,price.length-length)))
    return MTMValue;
}
